-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encryption trash fixes #3425
Encryption trash fixes #3425
Conversation
6778cd9
to
8c13d67
Compare
if ($groupFolder['folder_id'] === (int)$folderId) { | ||
$trashRoot = $this->getTrashFolder((int)$folderId); | ||
if ($groupFolder['folder_id'] === $folderId) { | ||
$trashRoot = $this->rootFolder->get('/' . $user->getUID() . '/files_trashbin/groupfolders/' . $folderId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does that work with the user uid in the path for the groupfolder trash?
Is the trash for a groupfolders mounted in each of the users (having access) trashbin path? Where is that handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the trash is now mounted for each user for the groupfolder, see the changes to MountProvider
3821522
to
7699828
Compare
Signed-off-by: Robin Appelman <[email protected]>
… handles this properly* *: expect for the mentioned bug Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
7699828
to
630caec
Compare
Force-merging as the failing cypress test is caused by an upstream regression |
/backport to stable30 |
29: #3484 |
Currently, the groupfolders trashbin doesn't actually support encryption. Things are only somewhat working by chance.
This is because currently the trash/restore operations for groupfolders don't go through the encryption storage wrapper. This PR makes sure the encryption storage wrappers are in effect when trashing/restoring files.
.
To test
occ config:app:set groupfolders enable_encryption --value='true'